/*
 * Copyright (c) 2010 CCX(China) Co.,Ltd. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of
 * CCX(China) Co.,Ltd. ("Confidential Information").
 * It may not be copied or reproduced in any manner without the express 
 * written permission of CCX(China) Co.,Ltd.
 * 
 *	Created on 2010-12-24 下午05:45:30
 */
package cn.com.ccxe.core.entity;

/**
 * 列表页面
 * @author hetao
 */
public class CrawlExpression {

	/**
	 * 列表页面ID，与列表页面为1:1关联。
	 */
	private int 	moduleId;
	private String 	articleListExpre;		//文章列表表达式
	private String 	listPageExpre;			//列表页面表达式
	private String 	datePattern;				//时间格式
	private String 	dateExpre;				//时间提取表达式
	
	
	
	public int getModuleId() {return moduleId;}
	public String getArticleListExpre() {return articleListExpre;}
	public String getDatePattern() {return datePattern;}
	public String getDateExpre() {return dateExpre;}
	public String getListPageExpre() {return listPageExpre;}
	
	public void setModuleId(int moduleId) {	this.moduleId = moduleId;}
	public void setArticleListExpre(String articleListExpre) {this.articleListExpre = articleListExpre;}
	public void setListPageExpre(String listPageExpre) {this.listPageExpre = listPageExpre;}
	public void setDatePattern(String datePattern) {this.datePattern = datePattern;}
	public void setDateExpre(String dateExpre) {this.dateExpre = dateExpre;}
	
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("moduleId:").append(moduleId)
			.append(",ArticleListExpre:").append(articleListExpre)
			.append(",ListPageExpre:").append(listPageExpre)
			.append(",datePattern").append(datePattern)
			.append(",dateExpre").append(dateExpre);
		return sb.toString();
	}
	
}
